package com.wyzz.hr.pojo.base;

import java.math.BigDecimal;

import com.wyzz.hr.pojo.Jobgrade;
import com.wyzz.hr.pojo.base.base.BaseBean;

public abstract class BaseJobgrade extends BaseBean {

	public BaseJobgrade() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseJobgrade(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseJobgrade(String id, String jobGradeNo, Integer jobGradeLevel,
			BigDecimal jobGradeMrp, String jobGradeName) {
		hashCode = 0x80000000;
		setId(id);
		setJobGradeNo(jobGradeNo);
		setJobGradeLevel(jobGradeLevel);
		setJobGradeMrp(jobGradeMrp);
		setJobGradeName(jobGradeName);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getJobGradeNo() {
		return jobGradeNo;
	}

	public void setJobGradeNo(String jobGradeNo) {
		this.jobGradeNo = jobGradeNo;
	}

	public Integer getJobGradeLevel() {
		return jobGradeLevel;
	}

	public void setJobGradeLevel(Integer jobGradeLevel) {
		this.jobGradeLevel = jobGradeLevel;
	}

	public BigDecimal getJobGradeMrp() {
		return jobGradeMrp;
	}

	public void setJobGradeMrp(BigDecimal jobGradeMrp) {
		this.jobGradeMrp = jobGradeMrp;
	}

	public BigDecimal getJobGradeRef1() {
		return jobGradeRef1;
	}

	public void setJobGradeRef1(BigDecimal jobGradeRef1) {
		this.jobGradeRef1 = jobGradeRef1;
	}

	public BigDecimal getJobGradeRef2() {
		return jobGradeRef2;
	}

	public void setJobGradeRef2(BigDecimal jobGradeRef2) {
		this.jobGradeRef2 = jobGradeRef2;
	}

	public BigDecimal getJobGradeRef3() {
		return jobGradeRef3;
	}

	public void setJobGradeRef3(BigDecimal jobGradeRef3) {
		this.jobGradeRef3 = jobGradeRef3;
	}

	public BigDecimal getJobGradeRef4() {
		return jobGradeRef4;
	}

	public void setJobGradeRef4(BigDecimal jobGradeRef4) {
		this.jobGradeRef4 = jobGradeRef4;
	}

	public BigDecimal getJobGradeRef5() {
		return jobGradeRef5;
	}

	public void setJobGradeRef5(BigDecimal jobGradeRef5) {
		this.jobGradeRef5 = jobGradeRef5;
	}

	public BigDecimal getJobGradeRef6() {
		return jobGradeRef6;
	}

	public void setJobGradeRef6(BigDecimal jobGradeRef6) {
		this.jobGradeRef6 = jobGradeRef6;
	}

	public BigDecimal getJobGradeRef7() {
		return jobGradeRef7;
	}

	public void setJobGradeRef7(BigDecimal jobGradeRef7) {
		this.jobGradeRef7 = jobGradeRef7;
	}

	public BigDecimal getJobGradeRef8() {
		return jobGradeRef8;
	}

	public void setJobGradeRef8(BigDecimal jobGradeRef8) {
		this.jobGradeRef8 = jobGradeRef8;
	}

	public String getJobGradeName() {
		return jobGradeName;
	}

	public void setJobGradeName(String jobGradeName) {
		this.jobGradeName = jobGradeName;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Jobgrade))
			return false;
		Jobgrade jobgrade = (Jobgrade) obj;
		if (null == getId() || null == jobgrade.getId())
			return false;
		else
			return getId().equals(jobgrade.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public Integer getJobGradeSortId() {
		return jobGradeSortId;
	}

	public void setJobGradeSortId(Integer jobGradeSortId) {
		this.jobGradeSortId = jobGradeSortId;
	}

	public static String REF = "Jobgrade";
	public static String PROP_JOB_GRADE_NAME = "jobGradeName";
	public static String PROP_JOB_GRADE_LEVEL = "jobGradeLevel";
	public static String PROP_JOB_GRADE_MRP = "jobGradeMrp";
	public static String PROP_JOB_GRADE_REF1 = "jobGradeRef1";
	public static String PROP_JOB_GRADE_REF2 = "jobGradeRef2";
	public static String PROP_JOB_GRADE_REF3 = "jobGradeRef3";
	public static String PROP_JOB_GRADE_REF4 = "jobGradeRef4";
	public static String PROP_JOB_GRADE_REF5 = "jobGradeRef5";
	public static String PROP_JOB_GRADE_REF6 = "jobGradeRef6";
	public static String PROP_JOB_GRADE_REF7 = "jobGradeRef7";
	public static String PROP_JOB_GRADE_REF8 = "jobGradeRef8";
	public static String PROP_JOB_GRADE_NO = "jobGradeNo";
	public static String PROP_JOB_GRADE_SORT_ID = "jobGradeSortId";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private String jobGradeNo;
	private Integer jobGradeLevel;
	private BigDecimal jobGradeMrp;
	private BigDecimal jobGradeRef1;
	private BigDecimal jobGradeRef2;
	private BigDecimal jobGradeRef3;
	private BigDecimal jobGradeRef4;
	private BigDecimal jobGradeRef5;
	private BigDecimal jobGradeRef6;
	private BigDecimal jobGradeRef7;
	private BigDecimal jobGradeRef8;
	private String jobGradeName;
	private Integer jobGradeSortId;

}
